package cn.com.api.entity;

import cn.com.api.entity.base.T_shippingBase;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.xml.soap.Text;

import com.mysql.jdbc.Blob;

// T_shipping Entity

/// <summary>
/// Datetime: 2015/12/14 7:51:08		
/// Genegrated automatically. Don't write your logic code here.	
/// the entity of table T_shipping.
/// </summary>

public class ApiT_shipping extends T_shippingBase implements Serializable {

	// User_id
	private String user_id;

	// Shipping_price
	private BigDecimal shipping_price;

	// Status
	private Integer status;

	// Shipping_remark--配送服务评价
	private Integer shipping_remark;

	// Create_time
	private Date create_time;

	// Allocating_time
	private Date allocating_time;

	// Start_time
	private Date start_time;

	// Arrive_shop_time
	private Date arrive_shop_time;

	// Take_goods_time
	private Date take_goods_time;

	// Shipping_out_time
	private Date shipping_out_time;

	// Arrive_user_time
	private Date arrive_user_time;

	private Date receive_order_time;
	/** 是否准时送达：0-准时，1-超时，2-早达 */
	private Integer is_ontime;
	//货到付款金额
	private BigDecimal on_delivery_money;
	//商家现结金额
	private BigDecimal cash_term_money;
	//备用金
	private Double reserve_money;

	// --------------------扩展字段
	/** 商铺id 配送订单所属的商铺 */
	private Integer shop_id;
	/** 配送订单的总金额 */
	private BigDecimal money;
	/** 订单的city_id  */
	private Integer city_id;
	/** 相同的配送距离 */
	private Double same_distance;

	/** 时间的字符串形式，便于前台显示 */
	private String create_time_str;// 创建时间
	private String allocating_time_str;// 派单时间
	private String receive_order_time_str;// 接单时间
	private String arrive_shop_time_str;// 到达商家时间
	private String take_goods_time_str;// 取货时间
	private String shipping_out_time_str;// 获取送出时间
	private String arrive_user_time_str;// 货已送达时间
	private BigDecimal sum_lunchbox_price;//餐盒费总数

	public ApiT_shipping() {
		super();
	}

	// User_id
	public String getUser_id() {
		return this.user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	// Shipping_price
	public BigDecimal getShipping_price() {
		return this.shipping_price;
	}

	public void setShipping_price(BigDecimal shipping_price) {
		this.shipping_price = shipping_price;
	}

	// Status
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	// Shipping_remark
	public Integer getShipping_remark() {
		return this.shipping_remark;
	}

	public void setShipping_remark(Integer shipping_remark) {
		this.shipping_remark = shipping_remark;
	}

	// Create_time
	public Date getCreate_time() {
		return this.create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(create_time);
		this.create_time = create_time;
	}

	// Allocating_time
	public Date getAllocating_time() {
		return this.allocating_time;
	}

	public void setAllocating_time(Date allocating_time) {
		this.allocating_time_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(allocating_time);
		this.allocating_time = allocating_time;
	}

	// Start_time
	public Date getStart_time() {
		return this.start_time;
	}

	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}

	// Arrive_shop_time
	public Date getArrive_shop_time() {
		return this.arrive_shop_time;
	}

	public void setArrive_shop_time(Date arrive_shop_time) {
		this.arrive_shop_time_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(arrive_shop_time);
		this.arrive_shop_time = arrive_shop_time;
	}

	// Take_goods_time
	public Date getTake_goods_time() {
		return this.take_goods_time;
	}

	public void setTake_goods_time(Date take_goods_time) {
		this.take_goods_time_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(take_goods_time);
		this.take_goods_time = take_goods_time;
	}

	// Shipping_out_time
	public Date getShipping_out_time() {
		return this.shipping_out_time;
	}

	public void setShipping_out_time(Date shipping_out_time) {
		this.shipping_out_time_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(shipping_out_time);
		this.shipping_out_time = shipping_out_time;
	}

	// Arrive_user_time
	public Date getArrive_user_time() {
		return this.arrive_user_time;
	}

	public void setArrive_user_time(Date arrive_user_time) {
		this.arrive_user_time_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(arrive_user_time);
		this.arrive_user_time = arrive_user_time;
	}

	public Date getReceive_order_time() {
		return receive_order_time;
	}

	public void setReceive_order_time(Date receive_order_time) {
		this.receive_order_time_str = new SimpleDateFormat(
				"yyyy/MM/dd HH:mm:ss").format(receive_order_time);
		this.receive_order_time = receive_order_time;
	}

	public String getCreate_time_str() {
		return create_time_str;
	}

	public void setCreate_time_str(String create_time_str) {
		this.create_time_str = create_time_str;
	}

	public String getAllocating_time_str() {
		return allocating_time_str;
	}

	public void setAllocating_time_str(String allocating_time_str) {
		this.allocating_time_str = allocating_time_str;
	}

	public String getReceive_order_time_str() {
		return receive_order_time_str;
	}

	public void setReceive_order_time_str(String receive_order_time_str) {
		this.receive_order_time_str = receive_order_time_str;
	}

	public String getArrive_shop_time_str() {
		return arrive_shop_time_str;
	}

	public void setArrive_shop_time_str(String arrive_shop_time_str) {
		this.arrive_shop_time_str = arrive_shop_time_str;
	}

	public String getTake_goods_time_str() {
		return take_goods_time_str;
	}

	public void setTake_goods_time_str(String take_goods_time_str) {
		this.take_goods_time_str = take_goods_time_str;
	}

	public String getShipping_out_time_str() {
		return shipping_out_time_str;
	}

	public void setShipping_out_time_str(String shipping_out_time_str) {
		this.shipping_out_time_str = shipping_out_time_str;
	}

	public String getArrive_user_time_str() {
		return arrive_user_time_str;
	}

	public void setArrive_user_time_str(String arrive_user_time_str) {
		this.arrive_user_time_str = arrive_user_time_str;
	}

	public Integer getIs_ontime() {
		return is_ontime;
	}

	public void setIs_ontime(Integer is_ontime) {
		this.is_ontime = is_ontime;
	}

	public Integer getShop_id() {
		return shop_id;
	}

	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getCity_id() {
		return city_id;
	}

	public void setCity_id(Integer city_id) {
		this.city_id = city_id;
	}

	public BigDecimal getOn_delivery_money() {
		return on_delivery_money;
	}

	public void setOn_delivery_money(BigDecimal on_delivery_money) {
		this.on_delivery_money = on_delivery_money;
	}

	public BigDecimal getCash_term_money() {
		return cash_term_money;
	}

	public void setCash_term_money(BigDecimal cash_term_money) {
		this.cash_term_money = cash_term_money;
	}

	public Double getReserve_money() {
		return reserve_money;
	}

	public void setReserve_money(Double reserve_money) {
		this.reserve_money = reserve_money;
	}

	public Double getSame_distance() {
		return same_distance;
	}

	public void setSame_distance(Double same_distance) {
		this.same_distance = same_distance;
	}

	public BigDecimal getSum_lunchbox_price() {
		return sum_lunchbox_price;
	}

	public void setSum_lunchbox_price(BigDecimal sum_lunchbox_price) {
		this.sum_lunchbox_price = sum_lunchbox_price;
	}
	
}
